package ga.wavaplayer.util {
	
	import ga.wavaplayer.events.WUSerInfoEvent;
	import flash.events.EventDispatcher;
	
	public class WUserInfo extends EventDispatcher{
		
		public var bandwidth:Number = 0;
		public var last_broadcast_bandwidth:Number = 0;
		public var cpu_usage:Number = 0;
		
		public function WUserInfo() {
			
		}
		
		public static function set bandwidth(value:Number):void {
			var diff:Number = Math.abs(last_broadcast_bandwidth - value);
			if (diff / last_broadcast_bandwidth > 0.05) {
				last_broadcast_bandwidth = value;
				dispatchEvent(new WUSerInfoEvent(WUSerInfoEvent.BANDWIDTH_UPDATE));
			}
		}
		
		public static function get bandwidth():Number {
			return 
		}
	}
}
